package cn.kiliter.Test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class demo {
    public static void main(String[] args) {
        List<String> list1=new ArrayList<>();
        List<String> list2=new ArrayList<>();
        List<String> list3=new ArrayList<>();
        List<String> list4=new ArrayList<>();
        List<String> flag=new ArrayList<>();
        String[] array={
                "张家林","许璞","郭立清","童优",
                "张家林","许璞","郭立清","童优",
                "张家林","许璞","郭立清","童优",
                "张家林","许璞","郭立清","童优",
                "张家林","许璞","郭立清","童优",
                "张家林","许璞","郭立清","童优",
                "张家林","许璞","郭立清","童优"};

        for (int i=0;i<array.length;i++){
            flag.add(array[i]);
        }
        Collections.shuffle(flag);
        for (int i = 0; i < flag.size(); i++) {
            if(i%4==0){
                list1.add(flag.get(i));
            }
            if(i%4==1){
                list2.add(flag.get(i));
            }
            if(i%4==2){
                list3.add(flag.get(i));
            }
            if(i%4==3){
                list4.add(flag.get(i));
            }
        }


    }
}
